package com.cw.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.alibaba.excel.annotation.ExcelProperty;

/**
* @author smq
* @since 2021-04-28
*/
@ApiModel(value ="用户角色关系")
@Data
    @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYS_USER_ROLE")
public class SysUserRole implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @ExcelProperty(value = "id")
    @TableId("ID")
    private String id;

    @ApiModelProperty(value = "用户ID")
    @ExcelProperty(value = "USER_ID")
    @TableField("USER_ID")
    private String userId;

    @ApiModelProperty(value = "角色ID")
    @ExcelProperty(value = "ROLE_ID")
    @TableField("ROLE_ID")
    private String roleId;

    @ExcelProperty(value = "CREATE_TIME")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @ExcelProperty(value = "CREATE_BY")
    @TableField("CREATE_BY")
    private String createBy;

    @ExcelProperty(value = "DELETE_FLAG")
    @TableField("DELETE_FLAG")
    private String deleteFlag;

}
